<?php /* Smarty version Smarty-3.1.13, created on 2013-06-19 15:48:19
         compiled from "/var/www/html/insite/templates/en/adwords/items.tpl" */ ?>
<?php /*%%SmartyHeaderCode:19124762151bf3c13da7d61-41163371%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c45dd3ca3e7b6a6f1d4ead9a876c0ff62142eb34' => 
    array (
      0 => '/var/www/html/insite/templates/en/adwords/items.tpl',
      1 => 1371628087,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19124762151bf3c13da7d61-41163371',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_51bf3c13e668e0_11599348',
  'variables' => 
  array (
    'msg' => 0,
    'action' => 0,
    'categories' => 0,
    'chk' => 0,
    'v' => 0,
    'v2' => 0,
    'counter' => 0,
    'k' => 0,
    'select' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51bf3c13e668e0_11599348')) {function content_51bf3c13e668e0_11599348($_smarty_tpl) {?>
<script>
function checkAll()
{
	var total;
	total = document.frmAdmin.total.value;
	var i;
	for(i=1;i<total;i++) {
		id = document.getElementById("chk" + i);
		id.checked = true;
	}
}

function unCheckAll()
{
	var total;
	total = document.frmAdmin.total.value;
	var i;
	for(i=1;i<total;i++) {
		id = document.getElementById("chk" + i);
		id.checked = false;
	}
}
</script>

<!-- Content Area -->
<div id="content"> 
  
  <!-- Component Title -->
  <div class="pagetitle icon-48-module">
    <h2>Manager: SELECT ITEMS</h2>
  </div>
  
  <!-- System Messages -->
  
  <div id="system-message-container"> <?php if ($_smarty_tpl->tpl_vars['msg']->value){?>
    <dl id="system-message">
      <dt class="message">Message</dt>
      <dd class="message message">
        <ul>
          <li><?php echo $_smarty_tpl->tpl_vars['msg']->value;?>
</li>
        </ul>
      </dd>
    </dl>
    <?php }?> </div>
  
  <!-- Sub Menu Navigation -->
  <div class="subheader">
    <h3 class="element-invisible">Sub Menu</h3>
    <div id="no-submenu"></div>
  </div>
  
  <!-- Toolbar Icon Buttons -->
  <div class="actionbar-box">
    <div class="module">
      <h3>Toolbar</h3>
      <div class="actionbar-list">
        
        <div class="clr"></div>
      </div>
    </div>
    <div class="clr"></div>
  </div>
  
  <!-- Beginning of Actual Content -->
  <div id="element-box">
    <p id="skiptargetholder"><a id="skiptarget" class="skip" tabindex="-1"></a></p>
    <form name="frmAdmin" action="<?php echo $_smarty_tpl->tpl_vars['action']->value;?>
" method="post">
      <fieldset id="filter-bar">
        <legend class="element-invisible">Filter:</legend>
        <div><a href="#" onclick="javascript:checkAll();" >Checkall</a>&nbsp;&nbsp;&nbsp;<a href="#" onclick="javascript:unCheckAll();">Uncheckall</a></div>
        <div class="filter-search">
          <label class="filter-search-lbl" for="filter_search">Filter:</label>
            <?php if ($_smarty_tpl->tpl_vars['categories']->value){?>
            	<?php $_smarty_tpl->tpl_vars["counter"] = new Smarty_variable("1", null, 0);?>
                <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['categories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
                	<?php $_smarty_tpl->tpl_vars["select"] = new Smarty_variable("0", null, 0);?>
                    <?php if ($_smarty_tpl->tpl_vars['chk']->value){?>
                        <?php  $_smarty_tpl->tpl_vars['v2'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v2']->_loop = false;
 $_smarty_tpl->tpl_vars['k2'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['chk']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v2']->key => $_smarty_tpl->tpl_vars['v2']->value){
$_smarty_tpl->tpl_vars['v2']->_loop = true;
 $_smarty_tpl->tpl_vars['k2']->value = $_smarty_tpl->tpl_vars['v2']->key;
?>
                            <?php if ($_smarty_tpl->tpl_vars['v']->value==$_smarty_tpl->tpl_vars['v2']->value){?>
                                <?php $_smarty_tpl->tpl_vars["select"] = new Smarty_variable("1", null, 0);?>
                            <?php }?>
                        <?php } ?>
                    <?php }?>
                	<?php if ($_smarty_tpl->tpl_vars['counter']->value%2==1){?>
                    	<div class="clr"></div>
                    <?php }?>
                	<div style="float:left;width:300px"><input type="checkbox" name="chk[]" id="chk<?php echo $_smarty_tpl->tpl_vars['counter']->value;?>
" value="<?php echo $_smarty_tpl->tpl_vars['k']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['select']->value==1){?> checked="checked" <?php }?> /> <?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</div>
                    <?php $_smarty_tpl->tpl_vars["counter"] = new Smarty_variable($_smarty_tpl->tpl_vars['counter']->value+1, null, 0);?>
                <?php } ?>
            <?php }?>
            <div class="clr"></div>
            <div class="clr"></div>
          <button type="submit">Select</button>
        </div>
      </fieldset>
      <div class="clr"> </div>
      <input type="hidden" value="" name="task"  />
      <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['counter']->value;?>
" name="total"  />
    </form>
    <div class="clr"></div>
  </div>
  <!-- end of element-box -->
  
  <noscript>
  Warning! JavaScript must be enabled for proper operation of the Administrator backend.
  </noscript>
  <div class="clr"></div>
</div>
<!-- end of content --> 
<?php }} ?>